package com.tongji.housediy.controller
{
	import com.tongji.housediy.events.goodsEvent.DataDoneEvent;
	import com.tongji.housediy.events.goodsEvent.SearchGoodsEvent;
	import com.tongji.housediy.model.SearchResultModel;
	
	import org.robotlegs.mvcs.Command;
	
	/**
	 * 
	 * @author liaoruohuai
	 * 2011-4-8
	 */
	public class UpdateSearchGoodsBrandModelCmd extends Command
	{
		[Inject]
		public var event:SearchGoodsEvent;
		
		[Inject]
		public var searchGoodsModel:SearchResultModel;
		
		override public function execute():void
		{
			searchGoodsModel.updateSearchGoodsBrandModel(event.searchGoodsBrandModel);
			dispatch(new DataDoneEvent(DataDoneEvent.DATA_DONE, "Goods"));
		}
	}
}